package com.ls.controller.feedbackrecord;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ls.service.IFeedbackRecordService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 用户反馈 前端控制器
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@Api(value = "用户反馈相关接口", tags = "用户反馈相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/feedbackRecord")
public class FeedbackRecordController {
    private final IFeedbackRecordService service;

    /**
     * 查询用户反馈列表
     */
    @GetMapping(value = "pageList")
    public ResultData pageList(String phone, @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JSONField(format = "yyyy-MM-dd HH:mm:ss") String beginSt, @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JSONField(format = "yyyy-MM-dd HH:mm:ss") String endSt, Integer pageNum, Integer pageSize) {
        return service.pageList(phone,beginSt,endSt, pageNum, pageSize);
    }
}
